package Class::Scaffold::Delegate::Mixin;

# $Id: Mixin.pm 9981 2005-07-27 06:52:47Z gr $

use warnings;
use strict;


our $VERSION = '0.05';


sub delegate {
    # Class::Scaffold::Base inherits from this mixin, so we shouldn't use()
    # Class::Scaffold::Environment, which inherits from
    # Class::Scaffold::Base, creating redefined() warnings. So we just
    # require() it here.

    my $self = shift;
    if (@_) {
        throw Error::Hierarchy::Internal::CustomMessage(
            custom_message => 'delegate() is read-only'
        );
    }

    require Class::Scaffold::Environment;
    Class::Scaffold::Environment->getenv
}


1;


__END__

{% USE p = PodGenerated %}

=head1 NAME

{% p.package %} - large-scale OOP application support

=head1 SYNOPSIS

    {% p.package %}->new;

=head1 DESCRIPTION

=head1 METHODS

=over 4

{% p.write_methods %}

=back

{% p.write_inheritance %}

{% PROCESS standard_pod %}

=cut

